package com.qf.commerce.mapper;

import com.qf.commerce.common.vo.DealerVo;
import com.qf.commerce.entity.Dealer;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/*
 * @author 358
 * @since JDK 1.8
 * @data 2023/9/13 15:58
 */

public interface DealerMapper {
    int deleteByPrimaryKey(Integer dealerId);

    int insert(Dealer record);

    Dealer selectByPrimaryKey(Integer dealerId);

    int updateByUserId(Dealer record);

    List<DealerVo> selectAll();
    int countByUserId(Integer userId);
    int updateStatusById(@Param("dealerId") Integer dealerId,@Param("status") Integer status);

}